<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function Person(name) {
        this.name = name
    }

    Person.prototype.sayName = function () {
        console.log(this.name);
    }

    Person.prototype.name = 'PersonName'
    Object.prototype.name = 'ObjectName'

    const p = new Person('pName')

    console.log('p：', p);
    console.log(p.name);    // pName
    delete p.name
    console.log(p.name);    // PersonName
    delete Person.prototype.name
    console.log(p.name);    // ObjectName
</script>
</body>
</html>
